<!-- 签约日期控件 -->
<template>
    <a-space direction="vertical" style="width: 100%">
        <a-date-picker v-model="modelValue" style="width: 200px;" />
    </a-space>
</template>
  
<script lang="ts" setup>
import { ref, computed } from 'vue';

const props = withDefaults(
    defineProps<{
        props: { [propName: string]: any };
        name?: string;
        required?: boolean;
        oneValue: any;
        regex?: {
            [name: string]: {
                role: any;
                name: any;
            };
        };
    }>(),
    {}
);
const emit = defineEmits(['update:oneValue']);
const modelValue = computed({
    get: () => {
        return props.oneValue;
    },
    set: (val) => {
        emit('update:oneValue', val);
    }
})
</script>
  
<style scoped lang="less">

</style>
  